<template>
  <div class="layout">
    <image :style="{ height: px2rpx(height) + 'rpx', width: '20%' }" mode="aspectFit" @click="modelNavigateTo(item)"
      class="image-mode" :src="item.img" v-for="(item, index) in props.res.data.list" :key="index">

    </image>
  </div>
</template>

<script setup lang="ts">
import { modelNavigateTo } from './tpl-v3'
import { px2rpx } from './px2rpx'
const height = uni.getSystemInfoSync().screenWidth * 0.20
const props = defineProps(['res'])
</script>
<style lang="scss" scoped>
img,
image {
  display: block !important;
}

.layout {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
}
</style>
